<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>${company.companyName!} </title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="/res/css/mall/mallIndex.css" rel="stylesheet">
    <style>
    	.store.fll ul.hot li:hover{
			border: none;
		}
    </style>
    [#assign link="list"/]
<body style="background-color: #f5f5f5;">
[#include "/front/common/front_headMal.html"]
<div class="w1200">
    <h6 class="bread">当前位置：首页 > 商家店铺</h6>
    <img class="advBig" src="/res/images/respective/mall/advBack/advBack_03.jpg"/>
    <div style="overflow: hidden;">
        <div class="store fll">
            <div>
                <h3 class="til">
                    <img src="/res/images/sure_03.png"/>
                    安装通认证企业
                </h3>
                <div class="detail">
                    <h4>
                    ${company.companyName!} 
                    </h4>
                    <h5>
                        联系人：${shop.cantactName!} [#if shop.qq?? && shop.qq!=""] <a class="connMe" href="tencent://message/?uin=1125447406&Site=www.azt365.com&Menu=yes"><img  alt="" src="/res/images/oparaStatus/ask.gif"/></a>[/#if]
                    </h5>
                    [#if shop.display == 1]
                    <h5>
                        手机号：<span data="${shop.cantactTel}" >[#if shop.cantactTel??]${(shop.cantactTel!)?substring(0,3)}****${(shop.cantactTel!)?substring(7)}[/#if][#--${shop.telSecret!}--]</span>
                        [#--<dfn class="eye" onclick="showTel(this)"></dfn>--]
                    </h5>
                    [/#if]
                    <h5>
                    [#if shop.phone?? && shop.phone!="" ]固话：[#if shop.phone??]${(shop.phone!)?substring(0,3)}****[/#if][/#if]
                    </h5>
                    <h5>
                        地址：${shop.address!}
                    </h5>
                </div>
                <hr/>
                <span class="intro" style="padding-top: 0px;">
						<strong>公司简介：</strong>
						<span data-info="${info.companyInfo!}">
                        ${info.companyInfo!}
                        </span>
						<a class="more" data-op="kai" onclick="more(this)">[展开]</a>
					</span>
            </div>

            <div class="iterm2">
                <div class="detail">
                    <form method="get" action="/shop/${shop.id}" >
                    <h4>
                        <img src="/res/images/respective/mall/search_03.png"/>
                        <span>商品搜索</span>
                    </h4>
                    <div class="inpu">
                        <label>商品名称</label>
                        <input type="text" name="keywords" />
                    </div>
                    <div class="inpu">
                        <label>价格</label>
                        <input class="smal" type="text" name="priceStart" />
                        <span>—</span>
                        <input class="smal" type="text" name="priceEnd" />
                    </div>
                    <button type="submit" >搜索</button>
                </div>
                </form>
            </div>
            <div class="iterm2">
                <div class="detail">
                    <h4>
                        <img src="/res/images/respective/mall/search_06.png"/>
                        <span>热门推荐</span>
                    </h4>
                    <ul class="hot">
                        [#list hots.list as product ]
                            <li>
                                <p>
                                    <a href="/offer/${product.id}.html" target="_blank">
                                    <img   src="/res/images/defat.png" original="${product.firstImg!}" />
                                    </a>
                                </p>
                                <span>
                                <a href="/offer/${product.id}.html" target="_blank">
                                    ${product.name!}
                                </a>
								</span>
                                <strong>￥${product.minMemberPrice?string("0.00")}</strong>
                            </li>
                        [/#list]
                    </ul>
                </div>
            </div>
        </div>
        <div class="store flr">
            <div class="iterm1">
                <h4 style="cursor: pointer;" onclick="location.href='/shop/${shop.id}'">全部分类</h4>
                <div class="proTypeTwo">
                    [#list cats as cat ]
                        [#--老数据,有的分类没有匹配上--]
                        [#if cat.cateId?? ]
                            <a href="/shop/${shop.id}/${cat.cateId}"  [#if currentCat == cat.cateId ]class="vist" [/#if] ><dfn>${cat.catName!}（<span>${cat.count}</span>）</dfn></a>
                        [/#if]
                    [/#list]
                </div>
                <div class="search">
                    <form id="topSearchForm"  method="get" action="/shop/${shop.id}/${currentCat!0}"   >
                    <label>商品名称</label>
                    <input class="big" type="text" value="${(param.keywords)!?html}" name="keywords" >
                    <label>价格</label>
                    <input class="smal" type="text"  name="priceStart" value="${(param.priceStart)!?html}"  />
                    <span>—</span>
                    <input class="smal" type="text"  name="priceEnd"  value="${(param.priceEnd)!?html}" />

                    <input type="hidden" name="pageNo" id="pageNo" value="1" >

                    <button type="submit">搜索</button>
                    </form>
                </div>
            </div>


            <div class="iterm2">
                <h4>全部商品（共<span id="totalProductCount"  >${pagination.totalCount!0}</span>件商品）</h4>
                <!--3行-->
                [#if pagination.totalCount!=0]
                <ul>

                    [#list pagination.list as product ]
                        [#if (product_index+1)%4==0 ]
                        <li style="margin-right: 0px;">
                        [#else]
                        <li>
                        [/#if]
                            <a href="/offer/${product.id}.html" target="_blank">
                                <p>
                                    <img  src="/res/images/defat.png" original="${product.firstImg!}" />
                                </p>
                            </a>
                            <a href="/offer/${product.id}.html" target="_blank" class="godName" style="height: 38px;">${product.name!}</a>
                            <h3>￥${product.minMemberPrice?string("0.00")}</h3>
                            <button class="fight" type="button" onclick="location.href='/offer/${product.id}.html'" >抢购</button>
                        </li>
                    [/#list]

                </ul>
                <div id="laypage" style="text-align: center;margin-top: 30px;"></div>
                [#else]

                <h3 class="sory">
                    <img src="/res/images/oparaStatus/none_03.png"/>抱歉，商家还没上传相关商品信息！
                </h3>

                [/#if]
            </div>
            <!--新闻资讯分页http://localhost:8088/wqq/info/infoIndex-->
        </div>
    </div>
</div>
[#include "/front/common/front_foot.html"]
</body>
<script src="/res/js/common/jquery.1.9.1.min.js"></script>
<script src="/res/js/common/jquery.ellipsis.js"></script>
<script src="/res/js/common/jQuery.numInput.js"></script>
<script src="/res/third/laypage/laypage.min.js"></script>
<script src="/res/third/layer/layer.js"></script>
<script src="/res/js/common/lazyload.js"></script>
<script type="text/javascript">
    var pageinfo={pages:${pagination.totalPage!},last:${pagination.totalPage!},curr:${pagination.pageNo}};

    $(function() { 
        $("input[name='priceStart'],input[name='priceEnd']").numInput();
        $(".store.fll .intro span").ellipsis({maxWidth:220,maxLine:2});
        bref=$(".store.fll span.intro span[data-info]").html(); 
        $(".store.fll ul.hot li>span").ellipsis({maxWidth:150,maxLine:2});
        $(".store.flr .iterm2 li a.godName").each(function(){
            $(this).ellipsis({maxWidth:120,maxLine:2});
        });

        laypage({
            cont: 'laypage',
            pages: pageinfo.pages, //总页数
            first:1,
            last:pageinfo.pages,
            curr:pageinfo.curr,
            skin: 'molv',
            jump: function(obj, first) {
                if(!first){ //点击跳页触发函数自身，并传递当前页：obj.curr
                    layer.load(2, {shade: 0.1});
                    $("#pageNo").val(obj.curr);
                    $("#topSearchForm").submit();
                }
            }
        });

    });
    var bref; //公司简介
    function more(o){
    	/*展开*/ 
    	if($(o).attr("data-op")=="kai"){
    		$(o).attr("data-op","shou");
    		$(o).text("收起");
    		var info=$(o).siblings("span").attr("data-info");
        	$(o).siblings("span").html(info); 
    	}else{ 
    		$(o).attr("data-op","kai");
    		$(o).text("展开");
    		$(o).siblings("span").html(bref); 
    	} 
    }
    /*显示手机号**/
    function showTel(o){
		var span  =$(o).parent("h5").find("span");
        var oldtel = span.text();
        span.text(span.attr("data"));
        span.attr("data",oldtel);
        if($(o).hasClass("blue")){
            $(o).removeClass("blue");
        }else{
            $(o).addClass("blue");
        }
	}

</script>
</html>